<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 分页 -->
    <link rel="stylesheet" href="./lib/xlPaging/css/xlPaging.css">
</head>

<body>
    <!-- 分页 -->
    <div id="page" class="page_div"></div>
    <!-- 引入js -->
    <script src="./lib/jquery/jquery.js"></script>
    <script src="./lib/popper/popper.js"></script>
    <script src="./lib/bootstrap/js/bootstrap.js"></script>

    <script src="./lib/xlPaging/js/jquery.xlPaging.js"></script>
    <script>
        $("#page").paging({
            pageNum: page, // 当前页码
            totalNum: totalPage, // 总页码
            totalList: total, // 数据总条数
            callback: function (num) { // 回调函数 会把当前页码传入
                // 获取当前页对应的数据
                getBorrowList(num)
            }
        })
        paging()
    </script>
</body>

</html>